package com.dqhl.smartstable.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.dqhl.smartstable.R;
import com.dqhl.smartstable.base.BaseActivity;

/**
 * Created by mac on 16/10/14.
 * 用户协议
 */
public class ProtocolActivity extends BaseActivity implements View.OnClickListener {

    private TextView tv_top_left;
    private TextView tv_top_center;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_protocol);

        initView();
    }

    private void initView() {
        tv_top_left = (TextView) findViewById(R.id.tv_top_left);
        tv_top_left.setText("关闭");
        tv_top_center = (TextView) findViewById(R.id.tv_top_center);
        tv_top_center.setText("登录");

        tv_top_left.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_top_left:
                finish();
                break;
        }
    }
}
